<div class="row">
    <div class="col-sm-12">
        <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
            <thead>
                <tr role="row">
                    <th class="sorting text-center" tabindex="0">ID</th>
                    <th class="sorting text-center" tabindex="0">问题标题</th>
                    <th class="sorting text-center" tabindex="0">提问者</th>
                    <th class="sorting text-center" tabindex="0">提问者手机</th>
                    <th class="sorting text-center" tabindex="0">专业类型</th>
                    <th class="sorting text-center" tabindex="0">截止时间</th>
                    <th class="sorting text-center" tabindex="0">是否开启悬赏</th>
                    <th class="sorting text-center" tabindex="0">是否付费查看</th>
                    <th class="sorting text-center" tabindex="0">阅读量</th>
                    <th class="sorting text-center" tabindex="0">问题状态</th>
                    <th class="sorting text-center" tabindex="0">回答状态</th>
                    <th class="sorting text-center" tabindex="0">响应时间</th>
                    <th class="sorting text-center" tabindex="0">添加时间</th>
                    <th class="sorting text-center" tabindex="0">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="lists" id="vo" >
                <tr role="row">
                    <td align="center">{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.username}</td>
                    <td>{$vo.mobile}</td>
                    <td>{:getCatNameStr($vo[cat_ids])}</td>
                    <td>{$vo.stop_time|date="Y-m-d H:i:s",###}</td>
                    <td><if condition="$vo.open_reward eq 1">是 （金额：{$vo.reward_money}）<else />否</if></td>
                    <td>
                        <if condition="$vo.a_id gt 0">
                            <if condition="$vo.charge_view eq 1">
                                是 （金额：{$vo.charge_money}）
                            <else />
                                否
                            </if>
                            <else />
                        </if>
                    </td>
                    <td>{$vo.read_num}</td>
                    <td>{$q_status[$vo[question_status]]}</td>
                    <td>{$a_status[$vo[answer_status]]}</td>
                    <td> {:cacTime($vo[response_sec])}</td>
                    <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>

                <td>

                    <a href="{:U('qa/detail',array('id'=>$vo['id']))}" data-toggle="tooltip"   class="btn btn-info" title="编辑" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

                    <a title="删除" class="btn btn-danger" href="javascript:;" data-url="{:U('qa/handle')}" data-id="{$vo.id}" onclick="delfun(this)"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr>
            </volist>
            </tbody>
            <tfoot>
            </tfoot>
        </table>
    </div>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var href = $(this).attr('href');
        page = href.split('/');
        ajaxGetTable('search-form2', page[page.length - 1]);
        return false;
    });
</script>